* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 防止移动端滚动时的弹性效果 */
html,
body {
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
  /* iOS平滑滚动 */
}

/* 移动端触摸优化 */
* {
  -webkit-tap-highlight-color: transparent;
  /* 移除点击高亮 */
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  touch-action: manipulation;
  /* 禁用双击缩放 */
}

#app {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px;
}

.container {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 20px;
  width: 80%;
  width: 100%;
  margin: auto;
  position: relative;
  overflow: hidden;
}

/* ========== 游戏页面布局 ========== */
.game-page-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* 左侧玩家列表 */
.players-sidebar {
  width: 80px;
  background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
  border-right: 2px solid #ddd;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
}

.players-sidebar-header {
  padding: 15px 8px;
  text-align: center;
  border-bottom: 2px solid #ddd;
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.players-sidebar-header h3 {
  margin: 0 0 5px 0;
  font-size: 0.9em;
  color: #333;
  font-weight: bold;
}

.player-count {
  font-size: 0.75em;
  color: #666;
  display: block;
}

.players-sidebar-list {
  flex: 1;
  padding: 10px 5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-player-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  background: white;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.sidebar-player-item:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.sidebar-player-item.leader {
  border-color: #ffc107;
  background: linear-gradient(135deg, #fff9e6 0%, #ffe082 100%);
}

.sidebar-player-item.inTeam {
  border-color: #4caf50;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.sidebar-player-item.currentPlayer {
  border-color: #667eea;
  background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.sidebar-player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  color: white;
  font-weight: bold;
  margin-bottom: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sidebar-player-item.leader .sidebar-player-avatar {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.sidebar-player-item.inTeam .sidebar-player-avatar {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
}

.leader-icon {
  font-size: 1.3em;
}

.player-number {
  font-size: 0.9em;
}

.sidebar-player-name {
  font-size: 0.7em;
  font-weight: 500;
  color: #333;
  text-align: center;
  word-break: break-all;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sidebar-player-badges {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  width: 100%;
  align-items: center;
}

.sidebar-player-badges .badge {
  font-size: 0.6em;
  padding: 2px 4px;
  border-radius: 4px;
  white-space: nowrap;
}

.sidebar-player-badges .leader-badge {
  background: #ffc107;
  color: #333;
}

.sidebar-player-badges .team-badge {
  background: #4caf50;
  color: white;
}

/* 右侧游戏内容 */
.game-content {
  flex: 1;
  margin-left: 80px;
  padding: 20px;
  overflow-y: auto;
  background: #fafafa;
  min-height: 100vh;
}

.game-content .container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}

/* 备用样式 - 不支持 backdrop-filter 时使用 */
@supports not (backdrop-filter: blur(10px)) {
  .container {
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 0%;
  }
}

h1 {
  text-align: center;
  color: #667eea;
  margin-bottom: 30px;
  font-size: 2.8em;
  font-weight: 700;
  letter-spacing: 2px;
  position: relative;
}

h2 {
  color: #764ba2;
  margin-bottom: 20px;
  font-size: 1.8em;
}

button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover::before {
  width: 300px;
  height: 300px;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

button:disabled:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 主菜单按钮样式 */
.menu-view {
  text-align: center;
  position: relative;
  z-index: 1;
}

.menu-view h1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
  position: relative;
  display: inline-block;
}

.menu-view h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #667eea, transparent);
  border-radius: 2px;
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 50px;
  position: relative;
}

.menu-btn {
  width: 100%;
  padding: 20px 35px;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: none;
}

.menu-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.menu-btn:hover::before {
  left: 100%;
}

.menu-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.menu-btn:active {
  transform: translateY(-2px);
}

.create-btn {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.create-btn:hover {
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.join-btn {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.join-btn:hover {
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

/* 输入界面样式 */
.input-view {
  text-align: center;
  position: relative;
  z-index: 1;
}

.input-view h2 {
  margin-bottom: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.input-form {
  max-width: 420px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.name-input,
.room-id-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 15px;
  transition: border-color 0.3s;
}

.name-input:focus,
.room-id-input:focus {
  outline: none;
  border-color: #667eea;
}

.form-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.confirm-btn {
  flex: 1;
  padding: 15px;
  font-size: 1.1em;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cancel-btn {
  flex: 1;
  padding: 15px;
  font-size: 1.1em;
  background: #f5f5f5;
  color: #666;
  border: 2px solid #e0e0e0;
}

.cancel-btn:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

input {
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  width: 100%;
  margin: 10px 0;
  transition: all 0.3s ease;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 2px 8px rgba(102, 126, 234, 0.15);
  transform: translateY(-1px);
}

input::placeholder {
  color: #999;
  transition: color 0.3s ease;
}

input:focus::placeholder {
  color: #bbb;
}

.room-code {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
  letter-spacing: 5px;
}

.player-list {
  margin: 20px 0;
}

.player-item {
  padding: 16px 20px;
  margin: 10px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  border: 2px solid #e9ecef;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.player-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.player-item.ready {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-left: 4px solid #4caf50;
  box-shadow: 0 3px 10px rgba(76, 175, 80, 0.2);
}

.player-item.leader {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  font-weight: bold;
}

.player-item.inTeam {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
}

.badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.leader-badge {
  background: #ffc107;
  color: #856404;
}

.team-badge {
  background: #2196f3;
  color: white;
}

.role-info {
  background: #fff3cd;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid #ffc107;
}

.role-info.evil {
  background: #f8d7da;
  border-left-color: #dc3545;
}

.role-info.good {
  background: #d1ecf1;
  border-left-color: #0dcaf0;
}

.error {
  color: #721c24;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  padding: 14px 18px;
  border-radius: 10px;
  margin: 15px 0;
  border-left: 4px solid #dc3545;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInError 0.3s ease-out;
}

@keyframes slideInError {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.success {
  color: #155724;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  padding: 14px 18px;
  border-radius: 10px;
  margin: 15px 0;
  border-left: 4px solid #28a745;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInSuccess 0.3s ease-out;
}

@keyframes slideInSuccess {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.flex {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mt-20 {
  margin-top: 20px;
}

.text-center {
  text-align: center;
}

.player-count-setting {
  background: #f0f0f0;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.count-btn {
  min-width: 80px;
  margin: 5px;
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid #e0e0e0;
  background: #f5f5f5;
  color: #666;
  font-weight: normal;
}

.count-btn:hover:not(.active) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  border-color: #667eea;
  background: #ffffff;
  color: #667eea;
}

.count-btn.active {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
  box-shadow: 0 0 25px rgba(76, 175, 80, 0.7), 0 8px 20px rgba(76, 175, 80, 0.5) !important;
  transform: scale(1.2) !important;
  border: 3px solid #2e7d32 !important;
  color: white !important;
  font-weight: bold;
  font-size: 1.1em;
  animation: pulse-glow 2s infinite;
  z-index: 10;
}

.count-btn.active:hover {
  transform: scale(1.25) !important;
  box-shadow: 0 0 35px rgba(76, 175, 80, 0.9), 0 10px 25px rgba(76, 175, 80, 0.6) !important;
}

.count-btn.active::before {
  content: '✓';
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(76, 175, 80, 0.7);
  border: 3px solid white;
  z-index: 11;
  animation: check-bounce 0.5s ease;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.7), 0 8px 20px rgba(76, 175, 80, 0.5);
  }

  50% {
    box-shadow: 0 0 35px rgba(76, 175, 80, 0.9), 0 10px 25px rgba(76, 175, 80, 0.7);
  }
}

@keyframes check-bounce {
  0% {
    transform: scale(0) rotate(-180deg);
  }

  50% {
    transform: scale(1.2) rotate(10deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* 角色配置区域 */
.role-config {
  margin-top: 20px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 2px solid #e0e0e0;
}

.role-config-header {
  text-align: center;
  margin-bottom: 20px;
}

.role-config-header h4 {
  color: #667eea;
  font-size: 1.3em;
}

.role-config-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.team-section {
  padding: 15px;
  border-radius: 8px;
}

.team-section.good-team {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
}

.team-section.evil-team {
  background: #ffebee;
  border-left: 4px solid #f44336;
}

.team-section h5 {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333;
}

.role-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.role-card {
  background: white;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 100px;
}

.role-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.role-card.good {
  border-top: 3px solid #4caf50;
}

.role-card.evil {
  border-top: 3px solid #f44336;
}

.role-icon {
  font-size: 2em;
  margin-bottom: 8px;
}

.role-name {
  font-weight: bold;
  font-size: 0.9em;
  color: #333;
}

/* 我的身份卡 */
.my-role-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  margin: 20px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-left: 6px solid;
  transition: all 0.3s ease;
  animation: cardSlideIn 0.5s ease-out;
  position: relative;
  overflow: hidden;
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.my-role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: shimmer 2s infinite;
}

.my-role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.my-role-card.good {
  border-left-color: #4caf50;
  background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
}

.my-role-card.evil {
  border-left-color: #f44336;
  background: linear-gradient(135deg, #ffebee 0%, #ffffff 100%);
}

.role-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.role-icon-large {
  font-size: 4em;
  line-height: 1;
}

.role-card-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.5em;
}

.role-card-body {
  line-height: 1.8;
}

.role-description {
  margin-bottom: 15px;
}

.role-desc-text {
  font-size: 1em;
  color: #555;
  margin: 10px 0;
}

.role-ability {
  background: #fff3cd;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 4px solid #ffc107;
}

.role-ability strong {
  color: #856404;
}

.role-tips {
  background: #d1ecf1;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #0dcaf0;
}

.role-tips strong {
  color: #0c5460;
}

/* 游戏状态 */
.game-status {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 24px;
  border-radius: 16px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.game-status:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.quest-progress {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.quest-result {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  border: 3px solid;
}

.quest-result.success {
  background: #4caf50;
  color: white;
  border-color: #2e7d32;
}

.quest-result.fail {
  background: #f44336;
  color: white;
  border-color: #c62828;
}

.quest-result.pending {
  background: #e0e0e0;
  color: #666;
  border-color: #bdbdbd;
}

/* 游戏阶段 */
.game-phase {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-phase:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.leader-action h3 {
  color: #667eea;
  margin-bottom: 15px;
}

.leader-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
}

.leader-header h3 {
  color: white;
  margin-bottom: 10px;
  font-size: 1.5em;
}

.leader-info {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.quest-info {
  font-size: 1.1em;
  margin: 0;
}

.quest-info strong {
  font-size: 1.3em;
  color: #ffd700;
}

.selection-progress {
  font-size: 1.1em;
  margin: 0;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
}

.progress-text {
  font-size: 1.3em;
  font-weight: bold;
  color: #4caf50;
}

.progress-total {
  font-size: 1.1em;
  color: #ffd700;
}

.team-selection-container {
  margin: 20px 0;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
}

.team-selection-container h4 {
  margin-bottom: 10px;
  color: #333;
}

.selection-title {
  color: #333;
  font-size: 1.1em;
  margin-bottom: 15px;
  text-align: center;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 8px;
}

.team-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.player-select-item {
  padding: 15px 20px;
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  min-height: 60px;
}

.player-select-item:hover:not(.disabled) {
  background: #e3f2fd;
  border-color: #2196f3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.player-select-item.selected {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  border-color: #2e7d32;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.player-select-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  flex-shrink: 0;
}

.player-select-item.selected .player-avatar {
  background: rgba(255, 255, 255, 0.3);
}

.player-select-item:not(.selected) .player-avatar {
  background: #2196f3;
  color: white;
}

.check-icon {
  color: white;
  font-size: 1.5em;
}

.player-number {
  color: white;
  font-size: 1.2em;
}

.player-name {
  flex: 1;
  font-size: 1.1em;
}

.selected-badge {
  background: rgba(255, 255, 255, 0.3);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.9em;
}

.selected-preview {
  margin: 20px 0;
  padding: 15px;
  background: #f0f8ff;
  border-radius: 12px;
  border: 2px solid #2196f3;
}

.selected-preview h4 {
  color: #2196f3;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.selected-players {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.selected-player-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: white;
  border: 2px solid #4caf50;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.selected-player-item:hover {
  background: #ffebee;
  border-color: #f44336;
}

.player-avatar-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4caf50;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  font-weight: bold;
}

.remove-btn {
  background: #f44336;
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2em;
  line-height: 1;
  padding: 0;
  margin-left: 5px;
}

.remove-btn:hover {
  background: #d32f2f;
  transform: scale(1.1);
}

.action-buttons {
  margin-top: 20px;
}

.select-team-btn {
  width: 100%;
  padding: 18px;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 12px;
  transition: all 0.3s;
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
  margin-top: 20px;
}

.select-team-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.confirm-btn {
  width: 100%;
  padding: 18px;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 12px;
  transition: all 0.3s;
}

.confirm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #ccc;
}

.confirm-btn.btn-ready {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.confirm-btn.btn-ready:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.launch-vote-section {
  margin-top: 20px;
  padding: 20px;
  background: #f0f8ff;
  border-radius: 12px;
  border: 2px solid #2196f3;
}

.selected-team-preview {
  margin-bottom: 15px;
}

.launch-vote-btn {
  width: 100%;
  padding: 18px;
  font-size: 1.3em;
  font-weight: bold;
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
  margin-top: 15px;
}

.launch-vote-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.waiting-hint {
  color: #666;
  font-style: italic;
  margin-top: 10px;
  text-align: center;
}

.waiting {
  text-align: center;
  padding: 20px;
  color: #666;
}

.selected-team {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.team-member {
  padding: 8px 16px;
  background: #2196f3;
  color: white;
  border-radius: 20px;
  font-weight: bold;
}

.vote-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.vote-btn {
  min-width: 150px;
  padding: 15px 30px;
  font-size: 1.2em;
}

.vote-btn.approve {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.vote-btn.reject {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.quest-vote-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  align-items: center;
}

.quest-vote-btn {
  min-width: 200px;
  padding: 15px 30px;
  font-size: 1.2em;
}

.quest-vote-btn.success {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.quest-vote-btn.fail {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.voted {
  text-align: center;
  padding: 20px;
  background: #e8f5e9;
  border-radius: 8px;
  color: #2e7d32;
  margin-top: 15px;
}

.vote-hint {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin: 15px 0;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 8px;
}

.quest-result-display {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  border: 3px solid;
}

.success-msg {
  color: #4caf50;
  font-size: 1.5em;
  font-weight: bold;
  margin: 15px 0;
}

.fail-msg {
  color: #f44336;
  font-size: 1.5em;
  font-weight: bold;
  margin: 15px 0;
}

.quest-result-display {
  border-color: #e0e0e0;
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5em;
  color: white;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.modal-body {
  padding: 25px;
  overflow-y: auto;
  flex: 1;
}

.modal-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-info .quest-info {
  margin: 0;
  font-size: 1.1em;
}

.modal-info .quest-info strong {
  color: #667eea;
  font-size: 1.3em;
}

.modal-info .selection-progress {
  margin: 0;
  padding: 8px 16px;
  background: white;
  border-radius: 20px;
  font-size: 1.1em;
}

.modal-player-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.modal-player-item {
  padding: 15px 20px;
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s;
  cursor: pointer;
}

.modal-player-item:hover:not(.disabled) {
  background: #e3f2fd;
  border-color: #2196f3;
  transform: translateX(5px);
}

.modal-player-item.selected {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-color: #4caf50;
}

.modal-player-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.player-checkbox-label {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  width: 100%;
  margin: 0;
}

.player-checkbox {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: #4caf50;
  flex-shrink: 0;
}

.player-checkbox:disabled {
  cursor: not-allowed;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.player-avatar-modal {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #2196f3;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  flex-shrink: 0;
}

.modal-player-item.selected .player-avatar-modal {
  background: #4caf50;
}

.modal-player-item .player-avatar-modal .check-icon {
  color: white;
  font-size: 1.5em;
}

.modal-player-item .player-avatar-modal .player-number {
  color: white;
  font-size: 1.2em;
}

.modal-player-item .player-name {
  font-size: 1.1em;
  font-weight: 500;
  flex: 1;
}

.modal-footer {
  padding: 20px 25px;
  background: #f5f5f5;
  border-top: 2px solid #e0e0e0;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.modal-cancel-btn {
  padding: 12px 24px;
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-cancel-btn:hover {
  background: #e0e0e0;
}

.modal-confirm-btn {
  padding: 12px 24px;
  background: #ccc;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-confirm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-confirm-btn.btn-ready {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.modal-confirm-btn.btn-ready:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* 移动端优化 */
@media (max-width: 768px) {
  #app {
    padding: 5px;
    align-items: flex-start;
    padding-top: 10px;
  }

  .container {
    padding: 25px 20px;
    border-radius: 20px;
    margin: 0;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.98);
  }

  .container::before {
    height: 3px;
  }

  h1 {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  h2 {
    font-size: 1.4em;
    margin-bottom: 15px;
  }

  h3 {
    font-size: 1.2em;
  }

  /* 按钮优化 */
  button {
    padding: 14px 20px;
    font-size: 16px;
    min-height: 44px;
    /* 触摸友好的最小高度 */
    touch-action: manipulation;
    /* 禁用双击缩放 */
  }

  .menu-btn {
    padding: 20px;
    font-size: 1.1em;
    min-height: 56px;
  }

  .count-btn {
    min-width: 70px;
    padding: 12px 16px;
    font-size: 14px;
    margin: 5px;
  }

  .confirm-btn,
  .cancel-btn {
    padding: 16px;
    font-size: 1em;
    min-height: 48px;
  }

  /* 输入框优化 */
  input {
    padding: 14px;
    font-size: 16px;
    /* 防止iOS自动缩放 */
    min-height: 44px;
  }

  .name-input,
  .room-id-input {
    padding: 14px;
    font-size: 16px;
    margin-bottom: 12px;
  }

  /* 房间代码 */
  .room-code {
    padding: 12px;
    font-size: 20px;
    letter-spacing: 3px;
  }

  /* 玩家列表 */
  .player-list {
    margin: 15px 0;
  }

  .player-item {
    padding: 12px;
    margin: 8px 0;
    font-size: 14px;
    flex-wrap: wrap;
  }

  .player-select-item {
    padding: 12px 16px;
    font-size: 15px;
    min-height: 44px;
  }

  /* 角色配置 */
  .role-config {
    padding: 15px;
    margin-top: 15px;
  }

  .role-config-header h4 {
    font-size: 1.1em;
  }

  .role-card {
    min-width: 85px;
    padding: 10px 12px;
  }

  .role-icon {
    font-size: 1.5em;
  }

  .role-name {
    font-size: 0.85em;
  }

  /* 我的身份卡 */
  .my-role-card {
    padding: 20px;
    margin: 15px 0;
  }

  .role-card-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 15px;
  }

  .role-icon-large {
    font-size: 3em;
  }

  .role-card-header h3 {
    font-size: 1.3em;
  }

  .role-desc-text {
    font-size: 14px;
    line-height: 1.6;
  }

  .role-ability,
  .role-tips {
    padding: 10px;
    font-size: 14px;
    margin-bottom: 10px;
  }

  /* 游戏状态 */
  .game-status {
    padding: 15px;
    margin: 15px 0;
  }

  .quest-result {
    width: 40px;
    height: 40px;
    font-size: 1em;
  }

  /* 游戏阶段 */
  .game-phase {
    padding: 15px;
    margin: 15px 0;
  }

  .leader-action h3 {
    font-size: 1.1em;
    margin-bottom: 12px;
  }

  .team-selection {
    gap: 8px;
    margin: 12px 0;
  }

  .confirm-btn {
    margin-top: 12px;
    padding: 14px;
  }

  /* 投票按钮 */
  .vote-buttons {
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
  }

  .vote-btn {
    width: 100%;
    min-width: auto;
    padding: 16px;
  }

  .quest-vote-buttons {
    width: 100%;
    gap: 12px;
  }

  .quest-vote-btn {
    width: 100%;
    min-width: auto;
    padding: 16px;
  }

  /* 表单按钮 */
  .form-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .form-buttons button {
    width: 100%;
  }

  /* 徽章 */
  .badge {
    padding: 3px 10px;
    font-size: 11px;
  }

  /* 角色配置内容 */
  .role-config-content {
    flex-direction: column;
  }

  .role-cards {
    justify-content: center;
    gap: 8px;
  }

  /* 团队成员 */
  .team-members {
    gap: 8px;
  }

  .team-member {
    padding: 6px 12px;
    font-size: 14px;
  }

  /* 文本优化 */
  .waiting {
    padding: 15px;
    font-size: 14px;
  }

  .voted {
    padding: 15px;
    font-size: 14px;
  }

  /* 错误和成功消息 */
  .error,
  .success {
    padding: 12px;
    font-size: 14px;
    margin: 10px 0;
  }

  /* 房主设置区域 */
  .player-count-setting {
    padding: 15px;
    margin: 15px 0;
  }

  .player-count-setting h3 {
    font-size: 1.1em;
    margin-bottom: 12px;
  }

  /* 任务结果 */
  .quest-result-display {
    padding: 15px;
    margin: 15px 0;
  }

  .success-msg,
  .fail-msg {
    font-size: 1.3em;
    margin: 12px 0;
  }

  /* 工具类 */
  .mt-20 {
    margin-top: 15px;
  }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
  #app {
    padding: 0;
    align-items: stretch;
  }

  .container {
    border-radius: 0;
    padding: 20px 15px;
    min-height: 100vh;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.98);
  }

  .container::before {
    height: 3px;
  }

  h1 {
    font-size: 1.5em;
    margin-bottom: 15px;
  }

  h2 {
    font-size: 1.2em;
  }

  .menu-btn {
    padding: 18px;
    font-size: 1em;
  }

  .count-btn {
    min-width: 60px;
    padding: 10px 12px;
    font-size: 13px;
    margin: 3px;
  }

  .room-code {
    font-size: 18px;
    padding: 10px;
  }

  .role-icon-large {
    font-size: 2.5em;
  }

  .quest-result {
    width: 35px;
    height: 35px;
    font-size: 0.9em;
  }

  .player-item {
    padding: 10px;
    font-size: 13px;
  }
}

/* 横屏优化 */
@media (max-width: 768px) and (orientation: landscape) {
  #app {
    align-items: flex-start;
    padding-top: 5px;
  }

  .container {
    max-height: 95vh;
    overflow-y: auto;
    padding: 15px;
    -webkit-overflow-scrolling: touch;
  }

  h1 {
    font-size: 1.5em;
    margin-bottom: 15px;
  }

  .my-role-card {
    padding: 15px;
    margin: 10px 0;
  }

  .role-card-header {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .role-icon-large {
    font-size: 2.5em;
  }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
  .container {
    padding: 12px 8px;
  }

  h1 {
    font-size: 1.3em;
  }

  h2 {
    font-size: 1.1em;
  }

  .menu-btn {
    padding: 16px;
    font-size: 0.95em;
  }

  .count-btn {
    min-width: 55px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .room-code {
    font-size: 16px;
    padding: 8px;
  }

  button {
    padding: 12px 16px;
    font-size: 15px;
  }
}

/* 投票结果统计样式 */
.vote-result-statistics {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  border: 2px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vote-result-statistics h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.3em;
  text-align: center;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.vote-summary {
  margin-bottom: 20px;
}

.vote-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 1.1em;
  font-weight: bold;
}

.vote-summary-item.approved {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-left: 4px solid #4caf50;
  color: #2e7d32;
}

.vote-summary-item.rejected {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border-left: 4px solid #f44336;
  color: #c62828;
}

.vote-result-icon {
  font-size: 1.5em;
  margin-right: 10px;
}

.vote-result-text {
  flex: 1;
}

.vote-count {
  font-size: 0.95em;
  opacity: 0.9;
}

.vote-details {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
}

.vote-details h4 {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 1em;
}

.vote-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vote-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-radius: 8px;
  background: #f5f5f5;
  transition: all 0.3s ease;
}

.vote-item.approve {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-left: 3px solid #4caf50;
}

.vote-item.reject {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border-left: 3px solid #f44336;
}

.vote-item.pending {
  background: #f5f5f5;
  border-left: 3px solid #9e9e9e;
  opacity: 0.7;
}

.vote-item .player-name {
  font-weight: 500;
  color: #333;
}

.vote-item .vote-icon {
  font-weight: 500;
  font-size: 0.95em;
}

.vote-item.approve .vote-icon {
  color: #2e7d32;
}

.vote-item.reject .vote-icon {
  color: #c62828;
}

.vote-item.pending .vote-icon {
  color: #666;
}

/* 不同投票类型的特定样式 */
.team-vote-result {
  border-left: 4px solid #2196f3;
}

.launch-vote-result {
  border-left: 4px solid #ff9800;
}

.quest-vote-result {
  border-left: 4px solid #9c27b0;
}

/* 移动端响应式 */
@media (max-width: 768px) {
  .vote-result-statistics {
    padding: 15px;
    margin: 15px 0;
  }

  .vote-result-statistics h3 {
    font-size: 1.1em;
  }

  .vote-summary-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    font-size: 1em;
  }

  .vote-result-icon {
    font-size: 1.3em;
    margin-right: 8px;
  }

  .vote-item {
    padding: 10px 12px;
    font-size: 0.9em;
  }

  .vote-details h4 {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .vote-result-statistics {
    padding: 12px;
    margin: 12px 0;
  }

  .vote-summary-item {
    padding: 10px;
    font-size: 0.95em;
  }

  .vote-item {
    padding: 8px 10px;
    font-size: 0.85em;
  }
}

/* 游戏结束界面样式 */
.game-finished-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.game-finished-content {
  background: white;
  border-radius: 16px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-finished-header {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.game-finished-header.good-win {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 3px solid #4caf50;
}

.game-finished-header.evil-win {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border: 3px solid #f44336;
}

.game-finished-title {
  font-size: 2.5em;
  margin: 0 0 10px 0;
  color: #333;
  font-weight: bold;
}

.game-finished-subtitle {
  font-size: 1.2em;
  color: #666;
  margin: 0;
}

.game-finished-stats {
  margin-bottom: 30px;
}

.game-finished-stats h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.3em;
  text-align: center;
}

.quest-results-summary {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 8px;
}

.quest-result-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-label {
  font-size: 0.9em;
  color: #666;
}

.stat-value {
  font-size: 1.5em;
  font-weight: bold;
}

.stat-value.success {
  color: #4caf50;
}

.stat-value.fail {
  color: #f44336;
}

.quest-results-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.quest-result-badge {
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95em;
}

.quest-result-badge.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 2px solid #4caf50;
}

.quest-result-badge.fail {
  background: #ffebee;
  color: #c62828;
  border: 2px solid #f44336;
}

.game-finished-players {
  margin-bottom: 30px;
}

.game-finished-players h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.3em;
  text-align: center;
}

.players-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-role-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.player-role-item.good {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-left: 4px solid #4caf50;
}

.player-role-item.evil {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border-left: 4px solid #f44336;
}

.player-role-item .player-name {
  font-weight: bold;
  font-size: 1.1em;
  color: #333;
  flex: 1;
}

.player-role-item .player-role {
  font-weight: 500;
  color: #666;
  margin: 0 10px;
}

.player-role-item .player-side {
  font-size: 0.9em;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.player-role-item.good .player-side {
  background: #4caf50;
  color: white;
}

.player-role-item.evil .player-side {
  background: #f44336;
  color: white;
}

.game-finished-actions {
  text-align: center;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.game-finished-actions .back-btn,
.game-finished-actions .new-game-btn {
  padding: 15px 40px;
  font-size: 1.2em;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 150px;
}

.game-finished-actions .back-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.game-finished-actions .back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.game-finished-actions .new-game-btn {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.game-finished-actions .new-game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* 移动端响应式 */
@media (max-width: 768px) {
  .game-finished-content {
    padding: 20px;
    max-height: 95vh;
  }

  .game-finished-title {
    font-size: 2em;
  }

  .game-finished-subtitle {
    font-size: 1em;
  }

  .quest-results-summary {
    flex-direction: column;
    gap: 15px;
  }

  .player-role-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }

  .player-role-item .player-name {
    font-size: 1em;
  }

  .player-role-item .player-role {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .game-finished-content {
    padding: 15px;
  }

  .game-finished-title {
    font-size: 1.8em;
  }

  .quest-result-badge {
    padding: 8px 12px;
    font-size: 0.85em;
  }

  .player-role-item {
    padding: 10px;
  }
}

/* ========== UI/UX 优化增强 ========== */

/* 优化：加载状态和过渡动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(102, 126, 234, 0.3);
  border-radius: 50%;
  border-top-color: #667eea;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 优化：平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 优化：焦点可见性 */
*:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
  border-radius: 4px;
}

/* 优化：选择文本样式 */
::selection {
  background: rgba(102, 126, 234, 0.3);
  color: #333;
}

/* 优化：更好的触摸反馈 */
@media (hover: none) and (pointer: coarse) {
  button:active {
    transform: scale(0.98);
    opacity: 0.9;
  }

  .player-item:active {
    transform: scale(0.98);
  }
}

/* 优化：改进模态框动画 */
.modal-content {
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 优化：改进等待状态 */
.waiting {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* 优化：改进已投票状态 */
.voted {
  animation: successPulse 0.5s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

/* 优化：改进房间代码显示 */
.room-code {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2) !important;
  border: 2px solid #667eea !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}

.room-code::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.room-code:hover::before {
  left: 100%;
}

.room-code:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3) !important;
}

/* 优化：改进任务进度显示 */
.quest-progress {
  padding: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
}

.quest-result {
  transition: all 0.3s ease;
  cursor: pointer;
}

.quest-result:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 优化：改进确认按钮状态 */
.btn-ready {
  animation: readyPulse 2s ease-in-out infinite;
}

@keyframes readyPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
  }
  50% {
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.6);
  }
}

/* 优化：改进玩家列表项 */
.player-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: transparent;
  transition: all 0.3s ease;
}

.player-item.ready::before {
  background: linear-gradient(180deg, #4caf50 0%, #2e7d32 100%);
}

.player-item.leader::before {
  background: linear-gradient(180deg, #ffc107 0%, #ff9800 100%);
}

/* ========== 游戏结束界面 - 刺杀结果样式 ========== */
.game-finished-assassination {
  margin-top: 30px;
  padding: 20px;
  background: #fff3e0;
  border-radius: 12px;
  border: 2px solid #ff9800;
}

.game-finished-assassination h3 {
  margin: 0 0 15px 0;
  color: #e65100;
  font-size: 1.3em;
}

.assassination-result {
  padding: 15px;
  border-radius: 8px;
  background: white;
}

.assassination-result.assassination-success {
  border: 2px solid #f44336;
  background: #ffebee;
}

.assassination-result.assassination-fail {
  border: 2px solid #4caf50;
  background: #e8f5e9;
}

.assassination-info p {
  margin: 10px 0;
  font-size: 1.05em;
}

.assassination-info strong {
  color: #333;
  margin-right: 8px;
}

.assassination-outcome {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
}

.assassination-result.assassination-success .assassination-outcome {
  background: #ffcdd2;
  color: #c62828;
}

.assassination-result.assassination-fail .assassination-outcome {
  background: #c8e6c9;
  color: #2e7d32;
}

/* ========== 游戏历史记录样式 ========== */

.history-btn {
  background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.history-btn:hover {
  box-shadow: 0 8px 25px rgba(156, 39, 176, 0.4);
}

.history-view {
  padding: 20px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.history-header h2 {
  margin: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.history-header .back-btn {
  padding: 10px 20px;
  background: #f5f5f5;
  color: #666;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
}

.history-header .back-btn:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

.loading-container {
  text-align: center;
  padding: 40px;
}

.loading-container .loading {
  margin: 0 auto 20px;
}

.empty-history {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 1.1em;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.history-item {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInUp 0.4s ease-out;
}

.history-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.history-item.good-win {
  border-left: 4px solid #4caf50;
}

.history-item.good-win:hover {
  border-left-color: #2e7d32;
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.2);
}

.history-item.evil-win {
  border-left: 4px solid #f44336;
}

.history-item.evil-win:hover {
  border-left-color: #c62828;
  box-shadow: 0 8px 20px rgba(244, 67, 54, 0.2);
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.history-winner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2em;
  font-weight: bold;
}

.winner-icon {
  font-size: 1.5em;
}

.history-time {
  color: #666;
  font-size: 0.9em;
}

.history-item-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.history-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-around;
}

.stat-item {
  padding: 8px 16px;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 0.95em;
}

.stat-item strong {
  color: #667eea;
  margin-right: 5px;
}

.history-quest-results {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.history-quest-badge {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s ease;
}

.history-quest-badge.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 2px solid #4caf50;
}

.history-quest-badge.fail {
  background: #ffebee;
  color: #c62828;
  border: 2px solid #f44336;
}

.history-quest-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 历史记录详情弹窗 */
.history-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.history-detail-content {
  background: white;
  border-radius: 16px;
  padding: 30px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
}

.history-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.history-detail-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.5em;
}

.history-detail-header .close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.history-detail-header .close-btn:hover {
  background: #e0e0e0;
  transform: rotate(90deg);
}

.history-detail-body {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.detail-section {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
}

.detail-section h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.2em;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.detail-winner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 1.5em;
  font-weight: bold;
}

.detail-winner.good {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 3px solid #4caf50;
  color: #2e7d32;
}

.detail-winner.evil {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border: 3px solid #f44336;
  color: #c62828;
}

.winner-icon {
  font-size: 2em;
}

.detail-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.stat-label {
  font-weight: 500;
  color: #666;
}

.stat-value {
  font-weight: bold;
  font-size: 1.1em;
}

.stat-value.success {
  color: #4caf50;
}

.stat-value.fail {
  color: #f44336;
}

.detail-quest-results {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.detail-quest-badge {
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1em;
  transition: all 0.3s ease;
}

.detail-quest-badge.success {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
  border: 2px solid #4caf50;
}

.detail-quest-badge.fail {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #c62828;
  border: 2px solid #f44336;
}

.detail-quest-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.detail-players {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-player-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.detail-player-item.good {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-left: 4px solid #4caf50;
}

.detail-player-item.evil {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border-left: 4px solid #f44336;
}

.detail-player-item .player-name {
  font-weight: bold;
  font-size: 1.1em;
  color: #333;
  flex: 1;
}

.detail-player-item .player-role {
  font-weight: 500;
  color: #666;
  margin: 0 10px;
}

.detail-player-item .player-side {
  font-size: 0.9em;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
}

.detail-player-item.good .player-side {
  background: #4caf50;
  color: white;
}

.detail-player-item.evil .player-side {
  background: #f44336;
  color: white;
}

/* 移动端响应式 */
@media (max-width: 768px) {
  .history-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .history-item {
    padding: 16px;
  }

  .history-stats {
    flex-direction: column;
    gap: 10px;
  }

  .stat-item {
    padding: 6px 12px;
    font-size: 0.9em;
  }

  .history-detail-content {
    padding: 20px;
    max-height: 95vh;
  }

  .detail-section {
    padding: 15px;
  }

  .detail-player-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }

  .detail-player-item .player-role {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .history-view {
    padding: 15px;
  }

  .history-item {
    padding: 12px;
  }

  .history-quest-badge {
    padding: 6px 10px;
    font-size: 0.85em;
  }

  .history-detail-content {
    padding: 15px;
  }

  .detail-winner {
    font-size: 1.2em;
    padding: 15px;
  }
}

/* ========== 刺杀阶段样式 ========== */

.assassination-phase {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  border: 3px solid #e94560;
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.3);
}

.assassination-phase h3 {
  color: #e94560;
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(233, 69, 96, 0.5);
}

.assassination-header {
  text-align: center;
  margin-bottom: 30px;
}

.assassination-header h4 {
  color: #e94560;
  font-size: 1.4em;
  margin-bottom: 15px;
}

.assassination-hint {
  color: #ffd700;
  font-size: 1.1em;
  font-weight: 500;
  padding: 15px;
  background: rgba(233, 69, 96, 0.2);
  border-radius: 8px;
  border: 2px solid #e94560;
}

.assassination-waiting {
  text-align: center;
  padding: 40px;
}

.assassination-waiting p {
  font-size: 1.2em;
  margin: 10px 0;
}

.assassination-info {
  color: #ffd700;
  font-weight: 500;
  margin-top: 20px;
}

.player-selection-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
  max-height: 400px;
  overflow-y: auto;
}

.player-selection-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1em;
}

.player-selection-item:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #e94560;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.player-selection-item.selected {
  background: linear-gradient(135deg, #e94560 0%, #c73650 100%);
  border-color: #ffd700;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.5);
  transform: scale(1.02);
}

.player-selection-item .player-name {
  font-weight: 600;
  color: white;
}

.player-selection-item .selected-icon {
  color: #ffd700;
  font-size: 1.5em;
  font-weight: bold;
}

.assassination-confirm {
  text-align: center;
  margin-top: 30px;
}

.assassination-btn {
  padding: 18px 40px;
  font-size: 1.3em;
  font-weight: bold;
  background: linear-gradient(135deg, #e94560 0%, #c73650 100%);
  color: white;
  border: 3px solid #ffd700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px rgba(233, 69, 96, 0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.assassination-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(233, 69, 96, 0.6);
  background: linear-gradient(135deg, #ff1744 0%, #e94560 100%);
}

.assassination-btn:active {
  transform: translateY(-1px);
}

/* 移动端响应式 */
@media (max-width: 768px) {
  .assassination-phase h3 {
    font-size: 1.5em;
  }

  .assassination-header h4 {
    font-size: 1.2em;
  }

  .assassination-hint {
    font-size: 1em;
    padding: 12px;
  }

  .player-selection-item {
    padding: 15px;
    font-size: 1em;
  }

  .assassination-btn {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}
 
 